<!doctype html>

<%@page import="com.seabook.happy.website.daos.MoodDao"%>
<%@page import="com.seabook.happy.website.services.UserIdentificationService"%>
<%@page import="com.seabook.happy.website.pojos.Mood"%>
<%@page import="com.seabook.happy.website.utils.DateUtils"%>

<%@page import="com.google.appengine.api.datastore.KeyFactory" %>

<%@page import="java.util.List" %>

<html>
<body>
<%
			MoodDao moodDao = new MoodDao();
			List<Mood> moods = moodDao.listAllMoods();
			for (Mood mood : moods) {
%>
			<%= mood.getMoodMessage() + DateUtils.parseDate(mood.getModifiedDate()) %> &nbsp; <a href="/moodUpdateServlet?action=del&mood-id=<%=KeyFactory.keyToString(mood.getKey())%>">Del</a> </br>
<%
			}
%>
</body>
</html>